package com.winit.openapi.exception;

import com.winit.common.spi.SPIException;
import com.winit.common.spi.context.CommandContext;

/**
 * API异常类
 * 
 * @version Revision History
 * 
 * <pre>
 * Author     Version       Date        Changes
 * kang.wang    1.0           2014-10-21     Created
 * 
 * </pre>
 * @since 1.
 */
public class ApiException extends SPIException {

    private static final long serialVersionUID = 8902273388707200073L;

    public ApiException(String errorCode){
        super(errorCode, CommandContext.getContext().getLocale());
    }

    public ApiException(String errorCode, Object... params){
        super(CommandContext.getContext().getLocale(), errorCode, params);
    }

}
